#ifndef POSITION_H
#define POSITION_H

// 位置限定
#define cPosSeatMax			18000	// 数据极限位置
#define cPosSeatMin			2000
#define cPosStBkMax 		18000
#define cPosStBkMin			2000

#define cPosSeatDefault		11000	// P默认设定位置
#define cPosStBkDefault		11000

#define cPosSeatUpLmt		18000	// 软件设定默认极限位置
#define cPosSeatDnLmt		6000
#define cPosStBkUpLmt 		18000
#define cPosStBkDnLmt		6000




// 加速度数据结构体
typedef struct 
{
    int16_t x;
    int16_t y;
    int16_t z;
} AccelData;

#define MOVING_AVG_WINDOW 8

typedef struct {
  int16_t buffer[MOVING_AVG_WINDOW][3];
  uint8_t index;
} MovingAvgFilter_t;


extern AccelData AccelSeat;
extern AccelData AccelStBk;



#endif













